Skip to content

[6.2] Sema: Fix case where witness thrown error type is a subtype of a type parameter #80965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

slavapestov
Copy link
Contributor

6.2 cherry-pick of #80963

@slavapestov slavapestov requested a review from a team as a code owner April 21, 2025 20:36
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

… parameter

In b300068, I changed the `if`
condition here to check for the absence of type variables as well
as type parameters. This is incorrect; the type variables come up
in ValueWitnessRequest, and the type parameters come up in
associated type inference. We want the matching to be more lax
in the former case.

Fixes rdar://149438520.
@slavapestov slavapestov force-pushed the fix-rdar149438520-6.2 branch from 49901c2 to dc70a0e Compare April 24, 2025 16:30
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test macOS

@slavapestov slavapestov merged commit 2d76c38 into swiftlang:release/6.2 Apr 26, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants